package com.exam.api.modules.dict.mapper;

import com.exam.api.modules.dict.domain.SysDictItem;
import com.exam.api.modules.dict.dto.DictOptionDTO;
import com.exam.api.modules.dict.vo.SysDictItemVO;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
* @author iaa
* @description 针对表【sys_dict_item】的数据库操作Mapper
* @createDate 2025-06-17 14:00:39
* @Entity com.freshcut.api.modules.dict.domain.SysDictItem
*/
@Mapper
public interface SysDictItemMapper extends BaseMapper<SysDictItem> {


    @Select("select * from sys_dict_item ${ew.customSqlSegment}")
    IPage<SysDictItemVO> selectPageBy(IPage<SysDictItemVO> page, @Param(Constants.WRAPPER) QueryWrapper<SysDictItem> wrapper);


    List<DictOptionDTO> getDictItemByDictCode(String code);
}




